package com.itheima;

import com.itheima.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author itheima
 * @since 2021-10-25
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService) ctx.getBean("userService");
        //System.out.println(userService.login("13606904479","123456"));

        //System.out.println(userService.checkToken("9f925b5aab47d6dbe11a207df8bac610"));

        System.out.println(userService.getAll());
    }
}
